package lvyou;

import java.util.Random;

public class Visitor {
    private int age;
    private String name;
    private String phone;
    private String data;
    private double prise;

    public Visitor() {
    }

    public Visitor(int age, String name, double prise) {
        this.age = age;
        this.name = name;
        this.prise = prise;
    }

    public Visitor(String phone, String data) {
        this.phone = phone;
        this.data = data;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public double getPrise() {
        return prise;
    }

    public void setPrise(double prise) {
        this.prise = prise;
    }

    public double money(double prise){
        return 2000;
    }

    public void show(){
        System.out.println("姓名:" + this.getName() + ",年龄:" + this.getAge() + ",本次行程" + this.getPrise() + "元");
    }



}
